exports.vueTpl = function (name) {
    return `<template>
    {{name}}
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue';

export default defineComponent({
    setup() {
        const name = ref('${name}');
        return {
            name
        }
    }
});
</script>

<style>
</style>`
}

exports.serverTemplate = function (name, path) {
    return `const Router = require('koa-router');
const TokenMenager = require('../utils/verifyData');

const router = new Router({
    prefix: '/${name}'
});

router.post('/${path}', (ctx) => {

});

module.exports = router;`
}